* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "myFont";
  src: url("./纸与墨的流丽.ttf");
}

body {
  background: #8404fa;
  height: 100vh;
  background-image: url("./img/bg.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  font-family: myFont;
  overflow: hidden;
}

main {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  display: flex;
  height: 100vh;
  flex-flow: column wrap;
  justify-content: center;
  padding-left: 8vw;
}

.fa {
  color: #fff;
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 2rem;
  cursor: pointer;
  transform: rotate(0);
  z-index: 11;
}
.rotate {
  transform: rotate(180deg);
}
header {
  display: flex;
  height: 100vh;
  /* position: absolute;
  top: 0;
  left: 0; */
}
header > * {
  transition: 0.3s;
  z-index: 10;
}
.menuBrand {
  flex: 50%;
  height: 100vh;
}
.left {
  background-color: #c0392b;
  transform: translateY(100%);
  /* transform: translate3d(0, 100%, 0); */
}
.right {
  background-color: #158cdf;
  transform: translateY(-100%);
  /* transform: translate3d(0, -100%, 0); */
}
.translate0 {
  transform: translateY(0);
  /* transform: translate3d(0, 0, 0); */
}
ul {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
li {
  list-style: none;
  font-size: 30px;
  line-height: 70px;
  position: relative;
  transform: translateX(300%);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
a {
  text-decoration: none;
  color: #fff;
}
li::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  content: "";
  width: 10px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}
li:hover::before {
  width: 100%;
}
.liFly {
  transform: translateX(0);
}
li:nth-child(1) {
  transition-delay: 0.1s;
}
li:nth-child(2) {
  transition-delay: 0.2s;
}
li:nth-child(3) {
  transition-delay: 0.3s;
}
li:nth-child(4) {
  transition-delay: 0.4s;
}
li:nth-child(5) {
  transition-delay: 0.5s;
}
li:nth-child(6) {
  transition-delay: 0.6s;
}
